#include "light_input_system.h"

static PInputDevice g_ptInputDevices;

//注册输入设备
void InputDeviceRegister(PInputDevice ptInputDevice)
{
  ptInputDevice->pNext = g_ptInputDevices;  //新设备的下一个指向链表头部
  g_ptInputDevices = ptInputDevice;     //链表头部指向新设备
}

//注册多个输入设备
void AddInputDevices(void)
{
  //添加其他输入设备
}

//初始化输入设备
void InitInputDevices(void)
{
  PInputDevice pDev = g_ptInputDevices;

  while (pDev)
  {
    pDev->DeviceInit();
    pDev = pDev->pNext;
  }
}























